/*
 * @Author: Ethan
 * @Github: https://github.com/ethanpub
 * @Date: 2019-05-22 17:29:06
 * @LastEditors  : 方木
 * @Blog: https://ethan.pub
 * @LastEditTime : 2021-03-29 11:06:09
 * @Description: 🙏BUG退散🙏
 */
import request from '@/utils/umi';

export function getInfo(parameter) {
  return request('/user.json', {
    method: 'get',
    data: parameter,
  });
}
export function getList(parameter) {
  return request('/list.json', {
    method: 'get',
    data: parameter,
  });
}

export const login = (params) =>
  request({
    url: '/user.json',
    method: 'get',
    params,
  });
